* {
    padding: 0;
    margin: 0;
}

ul li {
    list-style: none;
}

/****************导航头部*****************/
#header {
    background-color: #ffe300;
    & > div {
        width: 1380px;
        // overflow: hidden;
        margin: auto;
        height: 56px;
        position: relative;
        text-align: center;
        .logo {
            position: absolute;
            top: 18px;
            left: 0px;
            img {
                width: 120px;
                height: 20px;
                display: block;
            }
        }

        .nav {
            display: inline-block;
            & > li {
                float: left;
                position: relative;
                a {
                    text-decoration: none;
                    color: #282828;
                    height: 56px;
                    line-height: 56px;
                    padding-left: 24px;
                    padding-right: 24px;
                    display: inline-block;
                    &:hover {
                        background-color: #282828;
                        color: #ffe300;
                    }
                    // &:hover ~ .list-box {
                    //     display: block;
                    // }
                }
                &:hover .list-box {
                    display: block;
                }
                .list-box {
                    height: 143.4px;
                    position: absolute;
                    z-index: 2;
                    display: none;
                    ul {
                        overflow: hidden;
                        width: 630px;
                        background-color: white;
                        padding: 11px 17px 17px 17px;
                        border-bottom: 1px solid #eaeaea;
                        li {
                            float: left;
                            width: 90px;
                            height: 28px;
                            position: relative;
                            margin-top: 4px;
                            a {
                                border-radius: 4px;
                                min-width: 42px;
                                padding: 0px 7px;
                                height: 28px;
                                line-height: 28px;
                                font-size: 14px;
                                color: #444;
                                &:hover {
                                    background-color: #ffe300;
                                }
                            }
                            i {
                                font-style: normal;
                                width: 1px;
                                height: 14px;
                                background-color: #ddd;
                                position: absolute;
                                display: inline-block;
                                right: 0px;
                                top: 7px;
                            }
                        }
                    }
                    p {
                        position: absolute;
                        height: 51.4px;
                        width: 664px;
                        background-color: white;
                        a {
                            margin-right: 40px;
                            color: #444;
                            padding-right: 15px;
                            background: url(../images/gengduojiantou.svg) right no-repeat;
                            background-size: 10px 10px;
                            text-align: left;
                            float: left;
                            &:hover {
                                color: #d36f16;
                                background-image: url(../images/gengduojiantou2.svg);
                                background-size: 10px 10px;
                            }
                        }
                    }
                }
            }
        }
        // .search {
        //     float: right;
        //     li {
        //         float: left;
        //     }
        // li:nth-of-type(1) {
        //     background: url(../images/svg/nav-search.svg?v=1) no-repeat;
        //     width: 20px;
        //     height: 20px;
        //     margin-top: 18px;
        // }
        // li:nth-of-type(2) {
        //     background: url(../images/svg/nav-upload.svg) center center no-repeat;
        //     width: 20px;
        //     height: 20px;
        //     margin-top: 18px;
        // }
        // }
    }
}

/****************轮播图*****************/
.swiper-container {
    width: 1130px;
    height: 286px;
    padding-top: 20px;
    padding-bottom: 24px;
}

#case {
    margin: auto;
    width: 1130px;
    overflow: hidden;
    margin-bottom: 50px;
    img {
        width: 210px;
        height: 168px;
        float: left;
        margin-right: 20px;
        border-radius: 5px;
    }
    img:nth-of-type(5) {
        margin-right: 0px;
    }
}

#recommend {
    background-color: white;
    width: 100%;
    ul {
        display: flex;
        justify-content: center;

        li {
            padding: 0px 30px 0px 30px;

            a {
                text-decoration: none;
                color: #999;
                font-size: 16px;
                height: 56px;
                line-height: 56px;
                padding: 19px 0px 19px 0px;
            }

            .active {
                border-bottom: 2px solid #444;
                color: #282828;
            }
        }
    }
}

#main {
    background-color: #f4f4f4;
    overflow: hidden;
    div:nth-of-type(1) {
        width: 1130px;
        margin: auto;
        overflow: hidden;
        .list {
            width: 210px;
            height: 308px;
            margin-right: 20px;
            margin-top: 20px;
            float: left;
            img {
                width: 210px;
                height: 158px;
                display: block;
            }
            div:nth-of-type(1) {
                background-color: white;
                width: 178px;
                height: 75px;
                padding: 11px 16px 13px 16px;
                border-bottom: 1px solid #eee;
                p:nth-of-type(1) {
                    color: #333;
                    font-size: 14px;
                    height: 20px;
                    line-height: 20px;
                }
                p:nth-of-type(2) {
                    color: #bbb;
                    font-size: 12px;
                    height: 18px;
                    line-height: 18px;
                    margin-bottom: 17px;
                }
                span:nth-of-type(1) {
                    font-size: 12px;
                    color: #bbb;
                    vertical-align: top;
                    margin-right: 10px;
                    i {
                        background: url(../images/card-liulan.svg) 0 4px no-repeat;
                        background-size: 16px auto;
                        display: inline-block;
                        width: 16px;
                        height: 16px;
                        vertical-align: top;
                        margin-right: 5px;
                    }
                }
                span:nth-of-type(2) {
                    font-size: 12px;
                    color: #bbb;
                    vertical-align: top;
                    margin-right: 10px;
                    i {
                        background: url(../images/card-pinglun.svg) 0 2px no-repeat;
                        background-size: 16px auto;
                        display: inline-block;
                        width: 16px;
                        height: 16px;
                        vertical-align: top;
                        margin-right: 5px;
                    }
                }
                span:nth-of-type(3) {
                    font-size: 12px;
                    color: #bbb;
                    vertical-align: top;
                    margin-right: 10px;
                    i {
                        background: url(../images/card-zan.svg) no-repeat;
                        background-size: 16px auto;
                        display: inline-block;
                        width: 16px;
                        height: 16px;
                        vertical-align: top;
                        margin-right: 5px;
                    }
                }
            }
            div:nth-of-type(2) {
                overflow: hidden;
                height: 50px;
                background-color: white;
                img {
                    width: 24px;
                    height: 24px;
                    margin-right: 10px;
                    border-radius: 50%;
                    border: none;
                    vertical-align: middle;
                    margin-top: 12px;
                    margin-left: 16px;
                    float: left;
                }
                span:nth-of-type(1) {
                    color: #333;
                    font-size: 12px;
                    height: 24px;
                    line-height: 24px;
                    vertical-align: middle;
                    white-space: nowrap;
                    float: left;
                    margin-top: 12px;
                    margin-left: 16px;
                }
                span:nth-of-type(2) {
                    color: #bbb;
                    font-size: 12px;
                    height: 24px;
                    line-height: 24px;
                    vertical-align: middle;
                    float: right;
                    margin-top: 12px;
                    margin-left: 16px;
                }
            }
        }
        .list:nth-of-type(5n) {
            margin-right: 0px;
        }
    }
    .paging {
        text-align: center;
        margin-top: 20px;
        margin-bottom: 20px;
        button {
            color: #999;
            box-sizing: border-box;
            width: 40px;
            height: 40px;
            margin: 0 3px;
            line-height: 38px;
            background-color: #fff;
            border: 1px solid #e9e9e9;
            font-size: 14px;
            cursor: pointer;
        }
    }
    .advertis {
        img {
            width: 1130px;
            height: 100px;
            display: block;
            margin: auto;
        }
    }
    .course {
        width: 1130px;
        margin: auto;
        p {
            margin-top: 15px;
            margin-bottom: 15px;
            overflow: hidden;
            span:nth-of-type(1) {
                float: left;
                color: #666;
                font-size: 14px;
                cursor: pointer;
            }
            span:nth-of-type(2) {
                float: right;
                color: #d36f16;
                font-size: 14px;
                cursor: pointer;
            }
        }
        dl {
            float: left;
            margin-right: 20px;
            dt {
                img {
                    width: 210px;
                    height: 118px;
                }
            }
            dd {
                font-size: 14px;
                color: #282828;
                width: 200px;
                height: 40px;
                background-color: white;
                line-height: 40px;
                padding-left: 10px;
            }
        }
        dl:nth-of-type(5n) {
            margin-right: 0px;
        }
    }
}

/**********footer***************/
#footer {
    background-color: #282828;
    color: #666;
    height: 229px;
}

/**********回到顶部css***************/
#top1 {
    width: 50px;
    height: 50px;
    background-color: #dddddd;
    position: fixed;
    right: 30px;
    bottom: 100px;
    display: none;
    cursor: pointer;
    box-sizing: border-box;
    border-radius: 5px;
    img {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
}
